import React,{useContext} from 'react'
import NumContext from '../context/NumContext'

export default function Child2() {
    let context = useContext(NumContext)
  return (
    <div>Child2
        公共的数据为{context.num}
    </div>
  )
}
